import 'package:flutter/material.dart';
import 'package:get/get.dart';

import 'logic.dart';

class WaitForPurchaseOrdersPage extends GetView<WaitForPurchaseOrdersLogic> {
  const WaitForPurchaseOrdersPage({super.key});

  @override
  Widget build(BuildContext context) {
    Get.put(WaitForPurchaseOrdersLogic());

    return Scaffold(
      appBar: AppBar(
        title: Text('采购需求'.tr),
        leading: IconButton(
          icon: const Icon(Icons.arrow_back_ios_new),
          onPressed: () => Get.back(),
        ),
        actions: [
          IconButton(
              onPressed: () => {}, icon: const Icon(Icons.filter_alt_outlined))
        ],
      ),
      body: Obx(() {
        return ListView(
          children: controller.buildGoodsCards(),
        );
      }),
    );
  }
}
